package com.xinqing.bigdata.controller;

import com.xinqing.bigdata.service.TestService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:CHQ
 * @Date:2020/8/20 18:59
 * @Description
 */
@RestController
public class ConsumerController {

    @Reference(version = "1.0.0")
    private TestService testService;

    @RequestMapping("/hi")
    public String hi() {
        return  testService.insert();
    }
}
